package com.song.user.stream.provider;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.function.Supplier;

/**
 * 自动发送消息
 */
//@Component
public class StreamProvider {
//    @Bean
    public Supplier<String> log(){
        return () -> {
            System.out.println("-----------: 123");
            return "123";
        };
    }
}
